package cn.hackcloud.demo.dubbo.service;

import cn.hackcloud.demo.dubbo.bean.UserAddress;
import cn.hackcloud.demo.dubbo.rpc.IUserService;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;

public class UserServiceMock implements IUserService {
    @Override
    public String sentinel(String json) {
        return "TEST";
    }

    @Override
    public List<UserAddress> sync(String userId) {
        return new ArrayList<>();
    }

    @Override
    public List<UserAddress> async(String userId) {
        return null;
    }

    @Override
    public CompletableFuture<List<UserAddress>> async2(String userId) {
        return null;
    }
}
